package com.booklove.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author author
 * @since 2024-09-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
// 表结构
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="用户信息")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "账户名称")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "openId码")
    private String openid;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "身份：志愿者-教师-用户-admin")
    private Integer identity;

    @ApiModelProperty(value = "专业")
    private String apply;

    @ApiModelProperty(value = "学院id")
    private String collegeId;

    @ApiModelProperty(value = "学校id")
    private String schoolId;

    @ApiModelProperty(value = "创建人")
    private Integer createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "更新人")
    private Integer updatedBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedTime;


}
